package com.flyweight.pattern.service.impl;

import com.flyweight.pattern.service.Shape;
import lombok.Setter;

/**
 * @author chenchen
 * @description
 * @date 2023/11/14 15:11
 */
public class Circle implements Shape {

    private final String color;
    @Setter
    private int x;
    @Setter
    private int y;
    @Setter
    private int radius;

    public Circle(String color) {
        this.color = color;
    }

    @Override
    public void draw() {
        System.out.println("Circle: Draw() [Color : " + color
                +", x : " + x +", y :" + y +", radius :" + radius);
    }
}
